{% raw %}

Benchmark 8a.1 Results

All result for the 8a.1 benchmark specification.

In [1]:
from IPython.display import HTML

HTML('''<script>
code_show=true; 
function code_toggle() {
 if (code_show){
 $('div.input').hide();
 $('div.prompt').hide();
 } else {
 $('div.input').show();
$('div.prompt').show();
 }
 code_show = !code_show
} 
$( document ).ready(code_toggle);
</script>
<form action="javascript:code_toggle()"><input type="submit" value="Code Toggle"></form>''')
Out[1]:
In [3]:
#from IPython.display import HTML, display
#from time import sleep

#display(HTML("""
#<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
#"""))

#sleep(0.1)

from IPython.display import HTML, display
from time import sleep

display(HTML("""
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
"""))

sleep(0.1)


from pfhub.main import line_plot, levelset_plot, get_table_data, plot_order_of_accuracy, get_result_data
#import itables.interactive
from itables import init_notebook_mode

init_notebook_mode(all_interactive=False)
In [2]:
line_plot(
    data_name='free_energy_1',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Free Energy',
        title="Free Energy, <i>r</i><sub>0</sub>=0.99<i>r</i><sup>*</sup>"
    )
)
In [4]:
line_plot(
    data_name='solid_fraction_1',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Solid Fraction',
        title="Solid Fraction, <i>r</i><sub>0</sub>=0.99<i>r</i><sup>*</sup>"
    )
)
In [5]:
line_plot(
    data_name='free_energy_2',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Free Energy',
        title="Free Energy, <i>r</i><sub>0</sub>=<i>r</i><sup>*</sup>"
    )
)
In [6]:
line_plot(
    data_name='solid_fraction_2',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Solid Fraction',
        title="Solid Fraction, , <i>r</i><sub>0</sub>=<i>r</i><sup>*</sup>"
    )
)
In [7]:
line_plot(
    data_name='free_energy_3',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Free Energy',
        title="Free Energy, <i>r</i><sub>0</sub>=1.01<i>r</i><sup>*</sup>"
    )
)
In [8]:
line_plot(
    data_name='solid_fraction_3',
    benchmark_id='8a.1',
    layout=dict(
        x='time (s)',
        y='Solid Fraction',
        title="Solid Fraction, <i>r</i><sub>0</sub>=1.01<i>r</i><sup>*</sup>"
    )
)
In [9]:
#PYTEST_VALIDATE_IGNORE_OUTPUT

data = get_result_data(['phase_field_1'], ['8a.1'], ['x', 'y', 'z'])

levelset_plot(
    data,
    layout=dict(
        levelset=0.5, 
        range=[-10, 10],
        title="Solid / Liquid Boundary at t=200, <i>r</i><sub>0</sub>=0.99<i>r</i><sup>*</sup>"
    ),
    mask_func=lambda df: (0.1 < df.z) & (df.z < 0.9),
    columns=('x', 'y', 'z')
)
In [10]:
data = get_result_data(['phase_field_2'], ['8a.1'], ['x', 'y', 'z'])

levelset_plot(
    data,
    layout=dict(
        levelset=0.5, 
        range=[-10, 10],
        title="Solid / Liquid Boundary at t=200, <i>r</i><sub>0</sub>=<i>r</i><sup>*</sup>"
    ),
    mask_func=lambda df: (0.1 < df.z) & (df.z < 0.9)
)
In [11]:
data = get_result_data(['phase_field_3'], ['8a.1'], ['x', 'y', 'z'])

levelset_plot(
    data,
    layout=dict(
        levelset=0.5, 
        range=[-10, 10],
        title="Solid / Liquid Boundary at t=200, <i>r</i><sub>0</sub>=1.01<i>r</i><sup>*</sup>"
    ),
    mask_func=lambda df: (0.1 < df.z) & (df.z < 0.9)
)
In [12]:
keys = ['x', 'y', 'z']

data_names = ['phase_field_3', 'phase_field_4', 'phase_field_5']
df = get_result_data(data_names, ['8a.1'], keys=keys)

plot_order_of_accuracy(
    df,
    keys=keys,
    stepsx=([-50, 50], 1000),
    stepsy=([-50, 50], 1000),
    layout=dict(
        title='Order of Accuracy',
        labels=dict(x=r'Δx', y=r'L<sup>2</sup> Norm')
    )
)

Table of Results

Table of 1a.1 benchmark result uploads

In [4]:
get_table_data('8a.1')
Out[4]:
Name Code Benchmark Author Timestamp
0 fipy_8a_fake FiPy 8a.1 Daniel Wheeler 2019-10-16
1 fipy_8a_fake_fake FiPy 8a.1 Daniel Wheeler 2019-10-16
{% endraw %}